package cn.com.bluemoon.daps.sync.vo.model2dev;

import cn.com.bluemoon.daps.common.domain.BmPageRequestVo;
import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author Jarod.Kong
 * @date 2021/6/16 21:52
 */
@ApiModel(description = "开发同步列表-查看表日志分页查询")
@Data
public class SyncTableTaskPageVo extends BmPageRequestVo  implements UserPermissionApi<String> {

    @ApiModelProperty("开发同步模型id")
    @NotNull(message = "模型id入参必填")
    private String modelId;

    @ApiModelProperty("开发同步列表行id（表id）")
    @NotNull(message = "表id入参必填")
    private String tableId;

    @ApiModelProperty(value = "查看表同步类型，1 查看开发库日志 2查看测试库日志, 默认为1", example = "1")
    private Integer type = 1;

    /**
     * @return 获取mvc传输中对应模型的id
     */
    @Override
    @ApiModelProperty(hidden = true)
    public String getUserPermissionKeyValue() {
        return getModelId();
    }
}
